This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Yoshi Nimrebergflar 28.Nov.03 12:53 PM a Web browser Notes Client6.0.2 CF2All Platforms
Hi
I have a relatively simple program:
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
If uidoc.EditMode = True Then
Call uidoc.Save
uidoc.Editmode = False
Else
uidoc.EditMode = True
End If
End Sub
Does more or less the same thing, changing between Editmode and not. Unfortunately it is possible that I change some values while editing the document, which would change the position of that document in the view from where I opened it in the first place. What happens now is, it opens the next or previeous document from that view, instead of keeping the document and changing between the the modes. In the debugger I can see, that the UID of the Uidoc is always the same, but it only opens the document (or changes the mode) AFTER the End Sub statement.
If I try it from another view where the position does not change, in runs perfectly.
I also tried to do in manualy with uidoc.close (True) but the [immediate] does not work either.
Can anybody please explain me, why EditMode has something to do with the "current" view? Is there a workaround for this?
Thanks
cti